<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateWxusersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wxusers', function (Blueprint $table) {
            $table->increments('id');
            $table->string('nickName')->comment('昵称')->nullable();
            $table->string('avatarUrl')->comment('图像')->nullable();
            $table->string('gender')->comment('性别')->nullable();
            $table->string('city')->comment('城市')->nullable();
            $table->string('province')->comment('省份')->nullable();
            $table->string('country')->comment('国家')->nullable();
            $table->string('openid')->comment('openid')->nullable();
            $table->string('token')->comment('token')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('wxusers');
    }
}
